package com.xiaocheng.core.facade;
/**
 * 
* @ClassName: Computer 
* @Description: 外观模式的门面类
* @author 高亚鹏
* @date 2018年5月14日 下午5:12:00 
*
 */
public class Computer {
	private CPU cpu = new CPU();
	private Disk disk = new Disk();
	
	public void start(){
		cpu.start();
		disk.start();
		System.out.println("cpu is started");
	}
	public void shutDown() {
		cpu.stop();
		disk.stop();
		System.out.println("cpu is shutDowned");
		
	}
}
